/**
 * @Author: 安广伟
 * @Email: anguangwei@jwzh.tech
 * @Date: 2024-09-10 14:41:43
 * @LastEditTime 2024-09-10 14:41:43
 * @since: 1.0.0
 * @Version: 1.0.0
 * @Description:
 */

package com.ry.mall.server.util;

public class AuthContextHolder {

    private static ThreadLocal<String> userId = new ThreadLocal<String>();

    public static void setUserId(String _userId) {
        userId.set(_userId);
    }

    public static String getUserId() {
        return userId.get();
    }

    public static void removeUserId() {
        userId.remove();
    }
}
